(deps) Replace pascal-case with change-case (Maintained & Lighter)#2706
(deps) Replace pascal-case with change-case (Maintained & Lighter)#2706jycouet wants to merge 3 commits intosveltejs:masterfrom
pascal-case with change-case (Maintained & Lighter)#2706Conversation
|
Seemed simple and easy, of course working locally! |
|
The CI is probably broken because the default environment has changed. It probably failed in the master branch, too. I'll try to fix it later. |
|
Hooo okay. |
|
Weird... The problem is because change-case is an ESM libary. For some odd reason, the test breaks as long as you import any ESM libary. It probably has something to do with the loader API mocha depends on to run TypeScript tests. |
|
I'm willing to work on this if you are ok with it :) |
|
Sure. I haven't figure out a solution or found a upstream issue yet. |
|
I'm turning and turning and turning, but can't find a solution! |
|
FWIW we have a "would be nice" ticket to migrate from |
|
Let's see tomorrow if I can start something. 🫠 |
|
Mhhhm can we do this just yet? |
|
Close in favor of #2842 |
This PR replaces the unmaintained
pascal-casepackage with its recommended successor,change-case.Why?
pascal-case@3.1.1is outdated, and4.0.0is deprecated.change-case.change-casehas 0 dependencies and a smaller total footprint.Comparison:
no-case25KB,lower-case17KB)✅ Net win: Fewer dependencies, lower size, and a more future-proof solution.